package club.caihappy.server.service;

import club.caihappy.server.pojo.Employee;
import club.caihappy.server.pojo.RespBean;
import club.caihappy.server.pojo.RespPageBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author seven
 * @since 2022-05-07
 */
public interface IEmployeeService extends IService<Employee> {

    /**
     * 获取所有员工(分页)
     * @param currentPage
     * @param size
     * @param employee
     * @param beginDateScope
     * @return
     */
    RespPageBean getEmployeeByPage(Integer currentPage, Integer size, Employee employee, LocalDate... beginDateScope);

    /**
     * 获取最大工号
     * @return
     */
    RespBean getMaxWorkId();

    /**
     * 添加员工
     * @param employee
     * @return
     */
    RespBean addEmp(Employee employee);

    /**
     * 获取所有员工数据
     */
    List<Employee> getEmployees(Integer id);

    /**
     * 获取所有员工账套
     * @param currentPage
     * @param size
     * @return
     */
    RespPageBean getAllEmployeeWithSalary(Integer currentPage, Integer size);
}
